package com.leonzhangxf.xml.custom;

import lombok.Data;

import java.io.IOException;
import java.io.OutputStream;

/**
 * @author leonzhangxf
 * @date 20190606
 */
@Data
public class LeonPrinter {

    private String msg;

    private Boolean print;

    public void print(OutputStream outputStream) throws IOException {
        if (print) {
            outputStream.write(msg.getBytes());
        }
    }
}
